package com.hyb.controller;

import com.hyb.pojo.Priority;
import com.hyb.service.PriorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/ajax")
public class CheckController {
    @Autowired
    PriorityService priorityService;

    @RequestMapping("/a1")
    public List<Priority> toshow(){
        List<Priority> list = priorityService.getAll();
        System.out.println(list);
        return list;
    }
}
